exports.print = function(r) {
    console.log("输出金字塔",r);
}

function sum(n) {
    if (n == 1) {
        return 1;
    }
    return n + sum(n - 1)
}

exports.sum = sum;